-- GENERATED SPELL FOR [Enraged Water Spirit] --


function spell0_21059(pUnit, Event) --@Stormbolt,n/a--
pUnit:FullCastSpellOnTarget(38032,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21059', 7000, 1)
end

function Sorts_21059(pUnit, Event)
local choix_sorts_21059 = math.random(0, 0)
if choix_sorts_21059 == 0 then
pUnit:RegisterEvent('spell0_21059', 1, 1)
end
end

function mob21059_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21059', math.random(1500, 3000), 1)
end

function mob21059_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21059_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21059_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21059, 1, 'mob21059_Action')
RegisterUnitEvent(21059, 2, 'mob21059_Leave')
RegisterUnitEvent(21059, 3, 'mob21059_Kill')
RegisterUnitEvent(21059, 4, 'mob21059_Die')
